using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace DataLayer.Entities
{
    [Table("User")]
    public partial class User
    {
        public User()
        {
            Orders = new HashSet<Order>();
            UserCarts = new HashSet<UserCart>();
        }

        public long UserId { get; set; }

        [StringLength(128)]
        public string IdentityId { get; set; }

        public DateTime? CreatedDate { get; set; }

        public virtual AspNetUser AspNetUser { get; set; }

        public virtual ICollection<Order> Orders { get; set; }

        public virtual ICollection<UserCart> UserCarts { get; set; }
    }
}
